package com.dingcan;

import java.util.Scanner;

public class Text {

    public static void main(String[] args) throws Exception {
        Scanner scan =new Scanner(System.in);
        Text1 rs =new Text1();
        try {
            int choose=0;
            while(choose<6){
                System.out.println("欢迎使用吃货联盟订餐系统");
                System.out.println("*************************");
                System.out.println("1、我要订餐");
                System.out.println("2、查看餐袋");
                System.out.println("3、签收订单");
                System.out.println("4、删除订单");
                System.out.println("5、我要点赞");
                System.out.println("6、退出系统");
                System.out.println("*************************");
                System.out.println("请选择:");
                choose=scan.nextInt();
                switch(choose) {
                    case 1:
                        rs.ordering();
                        break;
                    case 2:
                        rs.lookOrder();
                        break;
                    case 3:
                        rs.getOrder();
                        break;
                    case 4:
                        rs.delOrder();
                        break;
                    case 5:
                        rs.likes();
                        break;
                    case 6:
                        choose =6;
                        break;
                    default:
                        System.out.println("请输入1-6的整数");
                        break;
                }
            }
        }catch (Exception e){
            System.out.println("必须为整型数字");
        }finally {
            System.out.println("使用结束，欢迎下次再来");
        }
    }
}
